package com.zs.games.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(description = "用户动态评论")
@TableName("user_dynamic_comment")
@Data
public class UserDynamicComment {

    @ApiModelProperty(value = "评论ID")
    @TableId(value =  "comment_id", type = IdType.AUTO)
    private int commentId;

    @ApiModelProperty(value = "动态ID")
    private int dynamicId;

    @ApiModelProperty(value = "评论的用户ID")
    private Integer userId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论时间")
    private Date createTime;

    @ApiModelProperty(value = "上级评论ID")
    private Integer lastCommentId;

    // Getters and Setters for the above fields
}
